<template>
  <div class="container">
    <record-table :records="records" />
  </div>
</template>

<script>
import RecordTable from '@/components/record/RecordTable.vue'
export default {
  data() {
    return {
      records: [],
    }
  },
  components: {
    RecordTable,
  },
  mounted() {
    this.$http
      .get('/record')
      .then(res => {
        this.records = res.data
      })
      .catch(err => {
        console.log(err)
      })
  },
}
</script>

<style scoped></style>
